Teams

The Player Meta for the Teams Module.

Functions

playerMeta:WhitelistAllClasses()

Whitelists all classes for the player.

playerMeta:WhitelistAllFactions()

Whitelists all factions for the player.

playerMeta:WhitelistEverything()

Whitelists everything (all classes and factions) for the player.

playerMeta:classUnWhitelist(class)

Removes the whitelist status for a specific class from the player.

Parameters

  • class Integer

    The class to remove the whitelist status for.

playerMeta:classWhitelist(class)

Whitelists the player for a specific class.

Parameters

  • class Integer

    The class to whitelist the player for.

playerMeta:getClass()

Retrieves the class of the player's character.

Returns

  • string or nil

    The class of the player's character, or nil if not found.

playerMeta:getClassData()

Retrieves the data of the player's character class.

Returns

  • table or nil

    A table containing the data of the player's character class, or nil if not found.

playerMeta:hasClassWhitelist(class)

Checks if the player has whitelisted access to a class.

Parameters

  • class Integer

    The class to check for whitelisting.

Returns

  • bool

    Whether the player has whitelisted access to the specified faction.

playerMeta:hasWhitelist(faction)

Checks if the player has whitelisted access to a faction.

Parameters

  • faction Integer

    The faction to check for whitelisting.

Returns

  • bool

    Whether the player has whitelisted access to the specified faction.

playerMeta:isClass(class)

Checks if the player belongs to the specified class.

Parameters

  • class String

    The class to check against.

Returns

  • bool

    Whether the player belongs to the specified class.

playerMeta:isFaction(faction)

Checks if the player belongs to the specified faction.

Parameters

  • faction String

    The faction to check against.

Returns

  • bool

    Whether the player belongs to the specified faction.

playerMeta:setWhitelisted(faction, whitelisted)

Sets whether the player is whitelisted for a faction.

Parameters

  • faction Integer

    The faction ID.

  • whitelisted Boolean

    Whether the player should be whitelisted for the faction.

Returns

  • bool

    Whether the operation was successful.